package site.jlopen.components.entity;

import java.util.List;

import lombok.Data;

@Data
public class GraphJson {

	private List<GraphJsonNode> nodes;
	private List<GraphJsonEdge> edges;
	
	@Data
	public static class GraphJsonNode {
		private String id;
		private String shape;
		private int zIndex;
		private int x;
		private int y;
		private String runStatus;
		private GraphNode data;
		private GraphJsonNodePort ports;
	}
	
	@Data
	public static class GraphJsonNodePort {
		private List<GraphJsonNodePortItem> items;
	}
	
	@Data
	public static class GraphJsonNodePortItem {
		private String id;
		private String group;
	}
	
	@Data
	public static class GraphJsonEdge {
		private String id;
		private String shape;
		private int zIndex;
		private GraphJsonLine source;
		private GraphJsonLine target;
	}
	
	@Data
	public static class GraphJsonLine {
		private String cell;
		private String port;
	}
}
